let str = '1234';
/*
1234
123 
234
12
23
34
1
2
3
4
*/
class Str {
	constructor() {
		str = '12345';
	}
	aa = function (e) {
		// body...
		if(e==undefined){
			e=str
		}else{
			e;
		}
		let strArr = e.split(''),
			lastArr = [],strArrJoin=[];
		let arrFun = (e) => {
			e.forEach((item, index) => {
				// 从
				let leftSpliceArr,
					rightSpliceArr,
					firstArr = Object.assign([], e);
				e.splice(e.length - 1, 1);
				firstArr.splice(0, 1);
				leftSpliceArr = Object.assign([], e);
				rightSpliceArr = Object.assign([], firstArr);
				lastArr.push(leftSpliceArr, rightSpliceArr);
				if (e.length > 1) {
					arrFun(e);
					arrFun(firstArr);
				}
			});
		};
		arrFun(strArr);strArrJoin.push(str);
		lastArr.forEach(item=>{
			strArrJoin.push(item.join(""));
		})
	return Array.from(new Set(strArrJoin))
	}
}
export default Str;
